//
//  ForgetPaswordViewController.m
//  OAProject
//
//  Created by yhj on 2017/7/10.
//  Copyright © 2017年 cdnunion. All rights reserved.
//  忘记密码主界面

#import "ForgetPaswordViewController.h"
#import "VerificationCodeViewController.h"

@interface ForgetPaswordViewController ()

@end

@implementation ForgetPaswordViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view.

    self.title=@"忘记密码";

    [self configUI];

}

-(void)configUI
{
    UIView *bgView=[[UIView alloc]initWithFrame:CGRectMake(0,74,APPW,50)];
    bgView.backgroundColor=WhiteColor;
    [self.view addSubview:bgView];


    UITextField *textTF=[[UITextField alloc]initWithFrame:CGRectMake(kmargin,0,APPW-kmargin*2,50)];
    textTF.placeholder=@"绑定的手机号码";
    textTF.textColor=LightGreyColor;
    [bgView addSubview:textTF];

    UIButton *nextBtn=[AppUI createButtonWithText:@"下一步" andWithTextColor:WhiteColor andWithFontfloat:18 andWithBtnAction:^{
        if (textTF.text.length==0)
        {
            [self.view makeToast:@"请输入手机号" duration:1 position:CSToastPositionCenter];
        }
        else
        {
            VerificationCodeViewController *vc=[VerificationCodeViewController new];
            [self.navigationController pushViewController:vc animated:NO];
        }
    }];
    nextBtn.backgroundColor=MainColor;
    ViewBorderRadius(nextBtn,kmargin,1,ClearColor);
    [self.view addSubview:nextBtn];
    nextBtn.frame=CGRectMake(kmargin*2,CGRectGetMaxY(bgView.frame)+kmargin*4,APPW-kmargin*4,kmargin*4);
}


@end
